// default settings. fis3 release
//编译时无视以下文件
fis.set('project.ignore', [
    'node_modules/**',
    '.git/**',
    '.svn/**',
    'run.bat',
    'package.json',
    'fis-conf.js'
]);
// Global start
fis.match('*.{js,css}', {
    useHash: false
});

fis.match('::image', {
    useHash: true
});

fis.match('*.js', {
    optimizer: fis.plugin('uglify-js')
});

fis.match('*.css', {
    optimizer: fis.plugin('clean-css')
});

fis.match('*.png', {
    optimizer: fis.plugin('png-compressor')
});

fis.match('*.scss', {
    parser: fis.plugin('node-sass'),
    optimizer: fis.plugin('clean-css'),
    rExt: '.css'
});

// Global end

// default media is `dev`
fis.media('dev').match('*', {
    domain: 'http://chatconfig.oss-cn-shanghai.aliyuncs.com'
}).match('src/**', {
    //optimizer: null,
    deploy: fis.plugin('alioss', {
        accessKey: 'yVfSX8YM89BldcRP',
        secretKey: '8rjW2zd644M7lfV9aTbvVlWUOEkYaM',
        bucket: 'chatconfig',
        ossServer: 'http://oss-cn-shanghai.aliyuncs.com'
    })
}).match('index.html', {
    deploy: fis.plugin('local-deliver', {
        to: 'preview' //https://github.com/fex-team/fis3-deploy-local-deliver/blob/master/index.js::::::if (to === 'preview') {to = serverRoot;}
    })
});